<template>
  <el-form :model="formData" label-width="60px">
    <el-form-item label="手机号">
      <el-input v-model="formData.phone" placeholder="请输入手机号码" />
    </el-form-item>
    <el-form-item label="验证码">
      <div class="verify-code">
        <el-input v-model="formData.code" placeholder="请输入验证码" />
        <el-button class="get-btn" type="primary">获取验证码</el-button>
      </div>
    </el-form-item>
  </el-form>
</template>

<script setup lang="ts">
import { ref, reactive } from 'vue'

type IAccount = {
  phone: string
  code: string
}

const formData = reactive<IAccount>({
  phone: '',
  code: ''
})
</script>

<style scoped lang="less">
.verify-code {
  display: flex;

  .get-btn {
    margin-left: 8px;
  }
}
</style>
